package cn.bqjr.eily.web.autoconfigure;

import cn.bqjr.eily.web.aspect.RespPackagingAspect;
import cn.bqjr.eily.web.exception.resolver.impl.DefaultExcepetionResolver;
import cn.bqjr.eily.web.utils.SecurityUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebBeanConfigure {

    @Bean
    public SecurityUtils securityUtils() {
        return new SecurityUtils();
    }

    @Bean
    public RespPackagingAspect respPackagingAspect() {
        return new RespPackagingAspect();
    }

    @Bean
    public DefaultExcepetionResolver defaultExcepetionResolver() {
        return new DefaultExcepetionResolver();
    }
}
